package com.minimalist.basic.config.bucket;


import java.time.Duration;

/**
 * @author 11987
 */
public class SimpleRateLimitConfigProvider implements RateLimitConfigProvider {
    private final RateLimitConfig rateLimitConfig;

    public SimpleRateLimitConfigProvider(int limit, Duration refillDuration) {
        this.rateLimitConfig = new RateLimitConfig(limit, refillDuration);
    }

    @Override
    public RateLimitConfig getRateLimitConfig() {
        return rateLimitConfig;
    }
}
